package com.kystar.muxplayer.protocol.code.get;

import com.kystar.muxplayer.base.TLog;
import com.kystar.muxplayer.protocol.CodeCmd;

public class CG8D_SourceStatus extends CodeCmd {


    private CG8D_SourceStatus() {//E9 11 8D 00 01 AA 32 0D 0A
        super(CODE_OK);
    }

    @Override
    public byte getCode() {
        return (byte) 0x8D;
    }



    public boolean[] getStatus() {

        boolean[] status = new boolean[8];
//        for (int j = 0; j < getReadLen(); j++) {
            int result0 = mResult[0];
            for (int i = 0; i < 8; i++) {
                status[i] = (result0 & (1<<i)) == (1<<i);
            }
//        }
        return status;
    }

    public static CG8D_SourceStatus create() {
        return new CG8D_SourceStatus();
    }
}
